import { post, get } from '@/server/index'
import type { LoginParamsType, LoginResultType, UserInfoResultType } from './interface'
import type { unKnow } from '@/interface'

export const loginApi = (params: LoginParamsType) => post<LoginParamsType, LoginResultType>('user/login', params)

export const getUserInfoApi = () => get<unKnow, UserInfoResultType>('user/info')
